{% extends "base.html" %}

{% block title %}
设置
{% endblock %}

{% block content %}

<div id="comments">
    <h3>评论列表</h3>
    <ol class="comment_list">
        {% for item in page.records %}
        <li class="comlist" id="Com-{{item.id|uw}}">
            <div id="Ctext-{{item.id|uw}}" class="comment">
                <div class="comment_meta">
                    <cite>{{item.pname|uw}}</cite> <span class="time">{{item.ptime|uw|dt}}</span>
                    <span class="reply"><a href="/topic/get?id={{item.cid|uw}}#Com-{{item.id|uw}}">[查看]</a>
                        <a href="javascript:void(0)" onclick="repl('{{item.id|uw}}')" title="回复评论">回复</a>&nbsp;
                        <a href="javascript:void(0)" onclick="delpl('{{item.id|uw}}','{{item.cid|uw}}')"
                            class="item">删除</a>
                        {%if item.isn|uw == 1 %}
                        <a href="javascript:void(0)" id="sh-{{item.id|uw}}" onclick="shpl('{{item.id|uw}}')"
                            class="item">审核</a>
                        {%endif%}
                    </span>
                </div>
                <p>{{item.pcontent|uw}}</p>
                <p class="re">&nbsp;&nbsp;<strong style="color:#C00">回复</strong>：<span>{{item.rcontent|uw}}</span></p>
            </div>
        </li>
        {%endfor%}
    </ol>
</div>
<div class="pagination">
    <span class="info"> 共计：{{page.total}} 条记录 每页:{{page.page_size}}条</span>
    {% if page.total_page > 1 %}
    <a href='/reply'>首页</a>
    <a href='/reply?page_no={{page.pre_page}}'>&lt;</a>
    {% for p in page.pages %}
    {% if p.eq(page.cur_page) %}
    <span class="current">{{p}}</span>
    {% else %}
    <a href='/reply?page_no={{p}}'>{{p}}</a>
    {% endif %}
    {% endfor %}
    <a href='/reply?page_no={{page.next_page}}'>&gt;</a>
    <a href='/reply?page_no={{page.total_page}}'>尾页</a>
    {% endif %}
</div>

{% endblock %}